package com.gimi.cloud.bbp.app.consumer.service.settlement;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 结算服务
 * @author lilinfeng
 */
public interface SettlementService {

	/**
	 * 从购物车中生成结算信息
	 * @param requestData
	 * @param request
	 * @param response
	 */
	void generatingClearingInformation(String requestData, HttpServletRequest request, HttpServletResponse response);

	/**
	 * 生成订单
	 * @param requestData
	 * @param request
	 * @param response
	 */
	void generatingOrder(String requestData, HttpServletRequest request, HttpServletResponse response);

	/**
	 * 提交订单支付状态
	 * @param requestData
	 * @param request
	 * @param response
	 */
	void submissionOfPaymentStatus(String requestData, HttpServletRequest request, HttpServletResponse response);

	/**
	 * 直接购买商品
	 * @param requestData
	 * @param request
	 * @param response
	 */
	void buyDirect(String requestData, HttpServletRequest request, HttpServletResponse response);

	/**
	 * 获取订单支付参数
	 * @param requestData
	 * @param request
	 * @param response
	 */
	void getPaymentParameters(String requestData, HttpServletRequest request, HttpServletResponse response);

	/**
	 * 获取订单支付金额
	 * @param requestData
	 * @param request
	 * @param response
	 */
	void getOrderPayAmount(String requestData, HttpServletRequest request, HttpServletResponse response);

}
